import request from '@/utils/request'

/**
 *
 * @param {获取media信息} data
 * @returns
 */

export function getMediaInfo(data) {
  return request({
    url: '/media',
    method: 'post',
    data
  })
}

export function getReycLeBin(data) {
  return request({
    url: '/cacheMedia',
    method: 'post',
    data
  })
}

export function getMediaInfoHSZ(data,url) {
  return request({
    url: url,
    method: 'post',
    data
  })
}

/**
 *
 * @param {转码} data
 * @returns
 */

 export function getFormateCode(data) {
  return request({
    url: '/convert_media_file',
    method: 'post',
    data
  })
}
/**
 *
 * @param {appVideo} data
 * @returns
 */

export function getAppMediaInfo(data) {
  return request({
    url: '/chat/faceBookVideo',
    method: 'post',
    data
  })
}

